<?php

namespace app\common\logic;

class AppLogic{

    private  static  $type=[

        ['id'=>1,'name'=>'基础应用'],

        ['id'=>2,'name'=>'餐饮美食'],

        ['id'=>3,'name'=>'休闲娱乐'],

        ['id'=>4,'name'=>'旅游酒店'],

        ['id'=>5,'name'=>'商城零售'],

        ['id'=>6,'name'=>'教育培训'],

        ['id'=>7,'name'=>'运动健康'],

        ['id'=>8,'name'=>'生活服务'],

    ];



    public static function getAppTypeList()

    {

        return self::$type;

    }



    public  static function getTypeName($type_id)

    {

        $type=self::$type;

        foreach ($type as $k =>$v){

            if($v['id']==$type_id){

                return $v['name'];

            }

        }

        return '其他分类';

    }

}